package com.zgm.ch05.aop.around._3_5_5;

public class WorkerBean {

//	public void doSomeWork(int noOfTimes) {
//		for (int x = 0; x < noOfTimes; x++){
//			work();
//		}
//	}
	
	public int doSomeWork(int noOfTimes) {
		for (int x = 0; x < noOfTimes; x++){
			work();
		}
		
		return noOfTimes;
	}
	
	public int doOtherWork(int noOfTimes) {
		for (int x = 0; x < noOfTimes; x++){
			work();
		}
		
		return noOfTimes;
	}
	
	private void work() {
		System.out.print("");
	}
}
